<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'validates.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <table>
     <tr>
					<td align="left" height="30" class="hei12">验证码：</td>
					<td align="left"><input type="text" id="rand"></input></td>
					<td align="left" nowrap="nowrap">
				       <img border=0 src="valid_img" width="70" height="20" id="image"><span id="zilan_line"><a href="#" onclick="return setCodeImage()">换一张</a></span>
				   </td>				   
				  </tr>
				  <tr>					  		
					<td colspan="2" align="right" height="35" class="padr10">
					<input type="Button" name="button1" value="登 陆"  onclick="if(!doValLoing()) return false;"/>					    				
				 
				    </td>
					<td align="left"><input name="Submit1" type="reset" class="button1" value="刷 新" /></td>
				  </tr>
    </table>
  </body>
  <script>
     function setCodeImage(){
	   document.getElementById("image").src="valid_img";
	   return false;
	}
  
  </script>
</html>
